﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Menu.Master" AutoEventWireup="true" CodeBehind="ConsultaAvanceActividades.aspx.cs" Inherits="Emporium_Web.ConsultaAvanceActividades" Theme="Constellation" %>

<%@ MasterType VirtualPath="~/Menu.master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<%@ Register src="Search/OrdenProduccionSearch.ascx" tagname="OrdenProduccionSearch" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">    
    <script type="text/javascript">
        
    </script>
    <script type="text/javascript" src="js/funciones.grid.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!-- Content -->
    <article class="container_12">
		<section class="grid_12">
			<div class="block-border">
			<form runat="server" class="block-content form" id="table_form">
            
            <ajaxtoolkit:toolkitscriptmanager ID="toolk" runat="server"  EnableScriptGlobalization="true" EnableScriptLocalization="true" EnablePageMethods="true"></ajaxtoolkit:toolkitscriptmanager>

				<h1>Avance de Actividades</h1>
               
                <asp:UpdatePanel ID="upnDatosBusqueda" runat="server">
                <ContentTemplate> 
                 
                 <fieldset>  
                  <div style="width: 100%; padding-top: 20px;">
                    <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 120px; float: left;">
                            <label>
                                    Nro O.P.</label>
                        </div>
                        <div align="left" style="width: 70%; float: left;">
                            <uc1:OrdenProduccionSearch ID="OrdenProduccionSearch1" runat="server" />
                        </div>
                        <div align="left" style="width: 10%; float: left; text-align:left;">
                             <asp:LinkButton ID="btnBuscar" runat="server" Text="Buscar" CssClass="button red" OnClick="btnBuscar_Click" />
                        </div>
                    </div>   
                   
                   <div style="width: 100%; height: 45px; float: inherit;">
                        <div style="width: 120px; float: left;">
                            <label>
                                    Prendas Programadas</label>
                        </div>
                        <div align="left" style= "float:left;">
                            <asp:TextBox ID="txtPrendasProgramadas" runat="server" Enabled="false" width="100px"></asp:TextBox>
                        </div>
                       
                    </div>   

                 </div>

                 <div style="width:100%; float:left;" align="left">                                        
                     <asp:Panel ID="pnlAvanceProcesos" runat="server" Height="300px" ScrollBars="Vertical" Width="100%">            
                     <asp:GridView ID="gvListadoProcesos" runat="server" SkinID="gridviewSkin" 
                             PageSize="100" Width="100%"
                             AutoGenerateColumns="False" ShowFooter="false" 
                             DataKeyNames = "ProcesoID" 
                             onrowdatabound="gvListadoProcesos_RowDataBound" 
                             onselectedindexchanged="gvListadoProcesos_SelectedIndexChanged" >
                        <HeaderStyle Font-Bold="True"/>                     
                        <Columns>                            
                            
                             <asp:CommandField ButtonType="Image" SelectImageUrl="~/images/unselected.png" ShowSelectButton="True" >
                                <HeaderStyle/>
                            </asp:CommandField>
                             
                            <asp:TemplateField HeaderText="Proceso"  HeaderStyle-HorizontalAlign="Left">                                                                                                                       
                                <ItemTemplate> 
                                    <asp:Label ID="lblProceso" runat="server" Text='<%# Bind("ProcesoDescripcion") %>'></asp:Label> 
                                </ItemTemplate> 
                                <ItemStyle Width="25%" />
                            </asp:TemplateField>
                                                                          
                           <asp:TemplateField HeaderText="Estado" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    
                                </ItemTemplate> 
                                <ItemStyle Width="30%" />
                            </asp:TemplateField> 
                            
                             <asp:TemplateField HeaderText="Salida" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadSalida" runat="server" Text='<%# Eval("CantidadSalida") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                <ItemStyle Width="15%" />
                            </asp:TemplateField>                           
                            
                             <asp:TemplateField HeaderText="Proceso" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadProceso" runat="server" Text='<%# Eval("CantidadProceso") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                <ItemStyle Width="15%" />
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="Merma" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadMerma" runat="server" Text='<%# Eval("CantidadMerma") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                <ItemStyle Width="10%" />
                            </asp:TemplateField>                           
                                                 
						</Columns>  						
					</asp:GridView>
                     </asp:Panel>   
                </div>
                </fieldset>


                
                 <ajaxtoolkit:TabContainer ID="tbcAvances" runat="server" ActiveTabIndex="0">
                 <ajaxtoolkit:TabPanel ID="TabPanel1" runat="server">
                 <HeaderTemplate>Resumen</HeaderTemplate>
                 <ContentTemplate>

                 <fieldset>  
                 <br />
                 <div style="width:100%; float:left;" align="left">                                        
                     <asp:Panel ID="pnlListadoResumen" runat="server" Height="200px" ScrollBars="Vertical" Width="100%">            
                     <asp:GridView ID="gvListadoResumen" runat="server" SkinID="gridviewSkin" 
                             PageSize="100" Width="100%"
                             AutoGenerateColumns="False" 
                             onrowdatabound="gvListadoResumen_RowDataBound">                           
                        <HeaderStyle Font-Bold="True"/>                     
                        <Columns>                                                        
                          
                            <asp:TemplateField HeaderText="Etiqueta">                                                                                                                       
                                <ItemTemplate> 
                                    <asp:Label ID="lblEtiqueta" runat="server" Text='<%# Bind("Etiqueta") %>'></asp:Label> 
                                </ItemTemplate> 
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="20%" />
                            </asp:TemplateField>

                             <asp:TemplateField HeaderText="Talla">                                                                                                                       
                                <ItemTemplate> 
                                    <asp:Label ID="lblTalla" runat="server" Text='<%# Bind("Talla") %>'></asp:Label> 
                                </ItemTemplate> 
                                 <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="10%" />
                            </asp:TemplateField>
                                                                          
                           <asp:TemplateField HeaderText="Estado">
                                <ItemTemplate> 
                                    
                                </ItemTemplate> 
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="30%" />
                            </asp:TemplateField> 
                            
                             <asp:TemplateField HeaderText="Salida">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadSalida" runat="server" Text='<%# Eval("CantidadSalida") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                 <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="15%" />
                            </asp:TemplateField>                           
                            
                             <asp:TemplateField HeaderText="Prendas Progr.">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadPrendasProgramadas" runat="server" Text='<%# Eval("CantidadPrendasProgramadas") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                 <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="15%" />
                            </asp:TemplateField>                                                    
                                                 
						</Columns>  						
					</asp:GridView>
                     </asp:Panel>   
                </div>
                </fieldset>

                 </ContentTemplate>
                 </ajaxtoolkit:TabPanel>


               
                <ajaxtoolkit:TabPanel ID="TabPanel2" runat="server">
                <HeaderTemplate>Detalle</HeaderTemplate>
                <ContentTemplate>

                 <fieldset>  
                 <br />
                 <div style="width:100%; float:left;" align="left">                                        
                     <asp:Panel ID="pnlListadoActividad" runat="server" Height="200px" ScrollBars="Vertical" Width="100%">            
                     <asp:GridView ID="gvListadoActividad" runat="server" SkinID="gridviewSkin" 
                             PageSize="100" Width="100%"
                             AutoGenerateColumns="False" ShowFooter="false" 
                             onrowdatabound="gvListadoActividad_RowDataBound" DataKeyNames="ActividadID"
                             onselectedindexchanged="gvListadoActividad_SelectedIndexChanged">                           
                        <HeaderStyle Font-Bold="True"/>                     
                        <Columns>                                                        
                          
                            <asp:CommandField ButtonType="Image" SelectImageUrl="~/images/unselected.png" ShowSelectButton="True" >
                                <HeaderStyle/>

                            </asp:CommandField>
                            <asp:TemplateField HeaderText="Actividad"  HeaderStyle-HorizontalAlign="Left">                                                                                                                       
                                <ItemTemplate> 
                                    <asp:Label ID="lblActividadDescripcion" runat="server" Text='<%# Bind("ActividadDescripcion") %>'></asp:Label> 
                                </ItemTemplate> 
                                <ItemStyle Width="30%" />
                            </asp:TemplateField>

                             <asp:TemplateField HeaderText="Sector"  HeaderStyle-HorizontalAlign="Left">                                                                                                                       
                                <ItemTemplate> 
                                    <asp:Label ID="lblSectorDescripcion" runat="server" Text='<%# Bind("SectorDescripcion") %>'></asp:Label> 
                                </ItemTemplate> 
                                <ItemStyle Width="15%" />
                            </asp:TemplateField>

                             <asp:TemplateField HeaderText="Linea"  HeaderStyle-HorizontalAlign="Left">                                                                                                                       
                                <ItemTemplate> 
                                    <asp:Label ID="lblLineaDescripcion" runat="server" Text='<%# Bind("LineaDescripcion") %>'></asp:Label> 
                                </ItemTemplate> 
                                <ItemStyle Width="15%" />
                            </asp:TemplateField>
                                                                          
                           <asp:TemplateField HeaderText="Estado" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    
                                </ItemTemplate> 
                                <ItemStyle Width="30%" />
                            </asp:TemplateField> 
                            
                             <asp:TemplateField HeaderText="Salida" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadSalida" runat="server" Text='<%# Eval("CantidadSalida") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                <ItemStyle Width="5%" />
                            </asp:TemplateField>                           
                            
                             <asp:TemplateField HeaderText="Proceso" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadProceso" runat="server" Text='<%# Eval("CantidadProceso") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                <ItemStyle Width="5%" />
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="Merma" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadMerma" runat="server" Text='<%# Eval("CantidadMerma") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                <ItemStyle Width="5%" />
                            </asp:TemplateField>                                                              
                                                 
						</Columns>  						
					</asp:GridView>
                     </asp:Panel>   
                </div>
                </fieldset>

                 <fieldset>  
                 <br />
                 <div style="width:100%; float:left;" align="left">                                        
                     <asp:Panel ID="pnlListadoResumenActividad" runat="server" Height="200px" ScrollBars="Vertical" Width="100%">            
                     <asp:GridView ID="gvListadoResumenActividad" runat="server" SkinID="gridviewSkin" 
                             PageSize="100" Width="100%"
                             AutoGenerateColumns="False" ShowFooter="false" 
                             onrowdatabound="gvListadoResumenActividad_RowDataBound">                           
                        <HeaderStyle Font-Bold="True"/>                     
                        <Columns>                                                        
                          
                            <asp:TemplateField HeaderText="Etiqueta"  HeaderStyle-HorizontalAlign="Left">                                                                                                                       
                                <ItemTemplate> 
                                    <asp:Label ID="lblEtiqueta" runat="server" Text='<%# Bind("Etiqueta") %>'></asp:Label> 
                                </ItemTemplate> 
                                <ItemStyle Width="20%" />
                            </asp:TemplateField>

                             <asp:TemplateField HeaderText="Talla"  HeaderStyle-HorizontalAlign="Left">                                                                                                                       
                                <ItemTemplate> 
                                    <asp:Label ID="lblTalla" runat="server" Text='<%# Bind("Talla") %>'></asp:Label> 
                                </ItemTemplate> 
                                <ItemStyle Width="10%" />
                            </asp:TemplateField>
                                                                          
                           <asp:TemplateField HeaderText="Estado" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    
                                </ItemTemplate> 
                                <ItemStyle Width="30%" />
                            </asp:TemplateField> 
                            
                             <asp:TemplateField HeaderText="Salida" HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadSalida" runat="server" Text='<%# Eval("CantidadSalida") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                <ItemStyle Width="15%" />
                            </asp:TemplateField>                           
                            
                             <asp:TemplateField HeaderText="Prendas Progr." HeaderStyle-HorizontalAlign="Left">
                                <ItemTemplate> 
                                    <asp:Label ID="lblCantidadPrendasProgramadas" runat="server" Text='<%# Eval("CantidadPrendasProgramadas") %>'></asp:Label>                                     
                                </ItemTemplate> 
                                <ItemStyle Width="15%" />
                            </asp:TemplateField>                                                    
                                                 
						</Columns>  						
					</asp:GridView>
                     </asp:Panel>   
                </div>
                </fieldset>

                  </ContentTemplate>
                 </ajaxtoolkit:TabPanel>

                 </ajaxtoolkit:TabContainer>


                </ContentTemplate>             
                </asp:UpdatePanel>                    
			</form>
			</div>
		</section>
	</article>
         
</asp:Content>
